import {useRoutes} from 'react-router-dom'
import AddGoods from "../pages/AddGoods";
import GoodsList from "../pages/GoodsList";
import CartList from "../pages/CartList";

export default function useRouters(){
    return useRoutes([
        {
            path:'/',
            element:<AddGoods/>
        },{
            path:'/goodsList',
            element: <GoodsList/>
        },{
            path:'/cartList',
            element: <CartList/>
        }
    ])
}